#ifndef GETBACKPASSWORDWIDGET_H
#define GETBACKPASSWORDWIDGET_H

#include <QWidget>
#include "usermanager.h"

namespace Ui {
class GetBackPasswordWidget;
}

class GetBackPasswordWidget : public QWidget
{
    Q_OBJECT

public:
    explicit GetBackPasswordWidget(QWidget *parent = nullptr);
    ~GetBackPasswordWidget();

    void setUserManager(UserManager* userManager);

signals:
    void sendMessage(const QString&);
    void display(int);

private slots:
    void onResetPasswordBtnClicked();

private:
    void handleResetError(UserManager::UserError error);
    Ui::GetBackPasswordWidget *ui;
    UserManager *m_pUserManager;
};

#endif // GETBACKPASSWORDWIDGET_H
